/* 
 * File:   mbdatacfg.h
 * Author: apleilx
 *
 */
 
#ifndef _MB_DATA_CONFIG_H_
#define _MB_DATA_CONFIG_H_

#include <stdint.h>

//YLMQ200
#define YLMQ200_ADDR_TEMP_PV                                 0x0000
#define YLMQ200_ADDR_HUMI_PV                                 0x0001
#define YLMQ200_ADDR_TIME_PV                                 0x0002
#define YLMQ200_ADDR_SYST_PV                                 0x0003
#define YLMQ200_ADDR_TEMP_SV                                 0x0004
#define YLMQ200_ADDR_HUMI_SV                                 0x0005
#define YLMQ200_ADDR_LIGHT_SV                                0x0006
#define YLMQ200_ADDR_TIME_SV                                 0x0007
#define YLMQ200_ADDR_LOOP                                    0x0008
#define YLMQ200_ADDR_SEG                                     0x0009
#define YLMQ200_ADDR_OUT                                     0x000A
#define YLMQ200_ADDR_START                                   0x000B
#define YLMQ200_ADDR_TEMP_AUTOSET                            0x000C
#define YLMQ200_ADDR_SPAKER_CLR                              0x000D
#define YLMQ200_ADDR_HUMI_AUTOSET                            0x000E

typedef union
{
    uint16_t St;
    struct
    {
        uint16_t              Heat                           :1;
        uint16_t              Cool                           :1;
        uint16_t              RunSt                          :1;
        uint16_t              HumiOut                        :1;
        uint16_t              HandOut                        :1;
        uint16_t              HumiAutoSet                    :1;
        uint16_t              TempAutoSet                    :1;
        uint16_t              CreamClr                       :1;
        uint16_t              LowAlr                         :1;
        uint16_t              HighAlr                        :1;
        uint16_t              TempLowLimite                  :1;
        uint16_t              TempHighLimite                 :1;
        uint16_t              TempOver                       :1;
        uint16_t              Water                          :1;
        uint16_t              HumiHighLimite                 :1;
        uint16_t              HumiLowLimite                  :1;
    }bits;
} YLMQ200ST_Type;

#define Y  
 #endif
